import Layout from '@/layout/index.vue'
import Home from '@/views/Home.vue'
const platform = [
  {
    path: '/',
    name: 'Layout',
    component: Layout,
    redirect: '/dashboard',
    meta: {
      title: '平台管理',
      icon: 'el-icon-s-help'
    },
    children: [
      {
        path: '/dashboard',
        name: 'Dashboard',
        component: Home,
        meta: {
          title: '公告管理',
          icon: 'el-icon-s-flag'
        }
      },
      {
        path: '/user',
        name: 'User',
        component: () => import('@/views/user.vue'),
        meta: {
          title: '用户管理',
          icon: 'el-icon-user-solid'
        }
      },
      {
        path: '/role',
        name: 'Role',
        component: () => import('@/views/role.vue'),
        meta: {
          title: '角色管理',
          icon: 'el-icon-platform-eleme'
        }
      },
      {
        path: '/suggest',
        name: 'Suggest',
        component: () => import('@/views/suggest.vue'),
        meta: {
          title: '建议反馈',
          icon: 'el-icon-s-claim'
        }
      },
    ]
  }
]
export default platform